package com.sjtu.web.form;

import com.sjtu.constants.AuthenticationConstants;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * nerine
 * 2/2/2020
 */
@Getter
@Setter
@ToString
public class UserAccountForm extends BaseForm {
    /** 账号id */
    @NotBlank
    private String userId;
    /** 账号中文名 */
    @NotBlank
    private String userName;
    private String password;
    /** 对应的子系统id */
    @NotBlank
    private String systemId;
    /** 角色权限 */
    @NotNull
    private AuthenticationConstants.RoleType role;
}
